package com.by.wx.servlet;
//package servlet;
//
//import java.io.IOException;
//import java.net.URLEncoder;
//
//import javax.servlet.ServletException;
//import javax.servlet.http.HttpServlet;
//import javax.servlet.http.HttpServletRequest;
//import javax.servlet.http.HttpServletResponse;
//
//import util.AuthUtil;
//
//public class LoginServlet extends HttpServlet{
//
//	@Override
//	protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
//		String backUrl="http://h5.gzbaoya.cn/wx/callBack";
//		String url="https://open.weixin.qq.com/connect/oauth2/authorize?appid=" + AuthUtil.APPID+
//                "&redirect_uri=" + URLEncoder.encode(backUrl,"UTF-8")+
//                "&response_type=code" +
//                "&scope=snsapi_userinfo" +
//                "&state=STATE#wechat_redirect";
//        resp.sendRedirect(url);
//	}
//}
